package com.ja.openchat.ui.chat.multimsg;

import android.content.Context;

import com.ja.openchat.R;
import com.zy.openchat.core.model.message.ChatInfo;
import com.zy.openchat.core.model.message.UiMessage;

import java.util.List;

public class CollectMessageAction extends MultiMessageAction {

    @Override
    public void onClick(List<UiMessage> messages) {
        fragment.favMessageMode(messages);
    }

    @Override
    public int iconResId() {
        return R.drawable.menu_shoucang_selector;
    }

    @Override
    public String title(Context context) {
        return context.getString(R.string.collect_text);
    }

    @Override
    public boolean filter(ChatInfo conversation) {
        return conversation.isMyFovChat();
    }
}
